﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using pos12.Models;

namespace pos12.Pages
{
    public partial class PosuvnikyAdmin : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            txtFreeDays.ReadOnly = false;
        }

        protected void btnSbmtPosuvniky_Click(object sender, EventArgs e)
        {
            var model = new PosyvnikyAdminModel
            {
                //Currency = 
                FreeDays = Convert.ToInt16(txtFreeDays.Text),
                MaxDays = Convert.ToInt16(txtMaxDays.Text),
                MinPriceWithDiscount = Convert.ToInt32(txtMinPriceWithDiscount.Text),
                MaxDiscountTerm = Convert.ToInt16(txtMaxDiscount.Text),
                MinPriceWithoutDiscount = Convert.ToInt32(txtMinPriceWithoutDiscount.Text),


            };

            //SaveSettings(model);
          
        }
    }
}